#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "settingdialog.h"
#include "readdownlist.h"
#include "downloadmanager.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void ini();
    void add();
    void start();
    void stop();
    void setting();

private:
    Ui::MainWindow *ui;
    settingDialog *sdialog;
    readDownlist *rdlist;
    DownloadManager *manager;


    QString fileName;

private slots:
    void slotActionTriggered(QAction *action);
    void slotAllProgressMessage(const QString &);
    void slotProgressMessage(const QString &);
    void flish();
};

#endif // MAINWINDOW_H
